﻿<!--
    #region License

// Copyright (c) 2012, Zhiyong Yang.
// All rights reserved.
// 
// 
// This software is licensed under the GNU General Public License version 2 (GPLv2).
// 
// Contact Me: 
//  Mail: younthu@yahoo.com.cn
//  MSN:  evil_eve_live@hotmail.com

#endregion
    -->
<Window x:Class="Bubbels.Controls.GameWindow"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"  
        xmlns:local="clr-namespace:Bubbels"
        xmlns:localControls="clr-namespace:Bubbels.Controls"
        Title="GameWindow" Height="600" Width="800" WindowStartupLocation="CenterScreen"
        ResizeMode="NoResize"
        SizeChanged="Window_SizeChanged" KeyUp="Window_KeyUp">


    <Window.CommandBindings>
        <CommandBinding Command="Close" Executed="CloseCommandExecute"/>
    </Window.CommandBindings>

    <Grid Name="mainGrid">
        <Grid.ColumnDefinitions>
            <ColumnDefinition Width="0"      >

            </ColumnDefinition>
            <ColumnDefinition Width="*"></ColumnDefinition>
        </Grid.ColumnDefinitions>
        <Grid.RowDefinitions>
            <RowDefinition Height="Auto" />
            <RowDefinition Height="*"/>
            <RowDefinition Height="30"/>
        </Grid.RowDefinitions>
        <!--
        <Menu IsMainMenu="True" Grid.Column="0" Grid.Row="0" Grid.ColumnSpan="2" >
            <MenuItem Header="_File" IsEnabled="True" >
                <MenuItem Header="E_xit" Command="ApplicationCommands.Close" IsEnabled="True">

                </MenuItem>
            </MenuItem>
            <MenuItem Header="_Game" >
                <MenuItem Header="_New Game"  Click="NewGame_Click">

                </MenuItem>
                <MenuItem Header="_Restart Game" Click="Restart_Click"></MenuItem>
                <MenuItem Header="Dump Game" Click="DumpGame_Click"></MenuItem>
            </MenuItem>
            <MenuItem Header="_Configure" />
            <MenuItem Header="_Help" />
            <MenuItem Header="_About" Click="About_Click" />
        </Menu>
             -->
        <localControls:Board x:Name="gameBoard" Grid.Column="1" Grid.Row="1"  Visibility="Hidden" GameOver="board_GameOver">
            
        </localControls:Board>
       
        <localControls:GameOverPane x:Name="gameControlPane"  Grid.Column="1" Grid.Row="1" OnNewGame="gameOverPanel_OnNewGame" OnExitGame="gameOverPanel_OnExitGame" OnRestartGame="gameOverPanel_OnRestartGame">

        </localControls:GameOverPane>
        <StatusBar Grid.Row="2" Grid.ColumnSpan="2">
            <StatusBarItem>Total Score:</StatusBarItem>
            <StatusBarItem Content="{Binding Score}"></StatusBarItem>
            <StatusBarItem>|</StatusBarItem>
            <StatusBarItem>Current Union Score:</StatusBarItem>
            <StatusBarItem Content="{Binding UnionScore}"/>

        </StatusBar>
    </Grid>
    
</Window>
